
const pool=require('../db/db');
const Sequelize=require('sequelize');
const message=pool.define('message',{

    message:{
        type:Sequelize.STRING,
        allowNull:false

    },
    createtime:{
        type:Sequelize.DATE,
        allowNull:true

    },
    owner:{
    type:Sequelize.STRING,
        allowNull:false
    },
    roomname : {
        type: Sequelize.STRING,
        allowNull: false

    }
})
module.exports=message;
